﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Buy_Bond.aspx.cs" Inherits="BuyLocalBonds.Buy_Bond" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 109px;
        }
        .style2
        {
            width: 73px;
        }
        .style3
        {
            width: 135px;
        }
        .style4
        {
            width: 137px;
        }
        .style5
        {
            width: 137px;
            height: 34px;
        }
        .style6
        {
            width: 135px;
            height: 34px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--    <form id="form1" runat="server">
    --%>
    <asp:Panel runat="server" DefaultButton="BuyButton">
        <h2>
            Buy Local Bond: Buy Bond</h2>
        <p>
        </p>
        <asp:Label ID="MessageLabel" ForeColor="Red" runat="server"></asp:Label>
        <asp:ValidationSummary ID="ValidationSummary" runat="server" ForeColor="Red" />
        <br />
        <table class="style8">
            <tr>
                <asp:Label ID="CustIDLabel" runat="server" Text="Customer ID:"></asp:Label>
                <asp:TextBox ID="CustomerIDTextBox" runat="server" ReadOnly="false"></asp:TextBox>
            </tr>
            <p>
            </p>
            <tr>
                <td class="style1" rowspan="2">
                    Quantity Available
                </td>
                <td class="style2" rowspan="2">
                    <asp:TextBox ID="QtyAvailTB" Style="width: 100pt" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
                <td class="style4">
                    CUSIP
                </td>
                <td class="style3">
                    <%--        <input type="text" style="width:80pt" name="CusipTextBox" readonly="readonly" 
            title="CusipTextBox"/>
                    --%>
                    <asp:TextBox ID="CusipTextBox" Style="width: 80pt" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Rating
                </td>
                <td class="style3">
                    <asp:TextBox ID="RatingTB" Style="width: 80pt" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1" rowspan="2">
                    Please enter Quantity to Buy
                </td>
                <td class="style2" rowspan="2">
                    <asp:RequiredFieldValidator ID="BuyQuantityFieldValidator" ControlToValidate="BuyQuantityTextBox"
                        runat="server" ErrorMessage="Quantity should be Non-Decimal Number" Display="None" SetFocusOnError="True" />
                    <asp:TextBox ID="BuyQuantityTextBox" Style="width: 100pt" runat="server" ReadOnly="false"></asp:TextBox>
                </td>
                <td class="style4">
                    Current Yield (%)
                </td>
                <td class="style3">
                    <asp:TextBox ID="YieldTB" Style="width: 80pt" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr style="width: 80pt">
                <td class="style4">
                    Yield to Maturity (%)
                </td>
                <td class="style3">
                    <asp:TextBox ID="YtmTB" Style="width: 80pt" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr style="width: 80pt">
                <td class="style5">
                    Coupon (%)
                </td>
                <td class="style6">
                    <asp:TextBox ID="CouponTB" Style="width: 80pt" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
                <td class="style5">
                    Maturity Date
                </td>
                <td class="style6">
                    <asp:TextBox ID="MatDtTB" Style="width: 80pt" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr style="width: 80pt">
                <td class="style4">
                    Price ($)
                </td>
                <td class="style3">
                    <asp:TextBox ID="PriceTB" Style="width: 80pt" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr style="width: 80pt">
                <td class="style19" colspan="2">
                    <asp:Button ID="Button2" runat="server" CausesValidation="False" OnClick="BacktoResults_Click" Text="Back to search results"
                        Width="150px" />
                </td>
                <td class="style2" colspan="2">
                    <asp:Button ID="BuyButton" runat="server" Text="Confirm Order" Width="144px" OnClick="BuyButton_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <%--    </form>
    --%>
</asp:Content>
